<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta content="text/html" charset="UTF-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>系统接口说明文档</title>
		<link rel="stylesheet" href="//cdn.bootcss.com/jquery-mobile/1.4.2/jquery.mobile.min.css" />
        <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
		<script src="//cdn.bootcss.com/jquery-mobile/1.4.2/jquery.mobile.min.js"></script>
	</head>
	<body>
		<div data-role="page" class="type-index content-primary">
            <div data-role="header">
                <h2>系统开发接口说明文档</h2>
            </div>
            <div data-role="content">
                <p>以下url的基础域名皆为: {:C('SERVER')}/api/</p>
                <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f" class="ui-listview">
                    <li>
                        <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
                            <li data-role="list-divider" role="heading" class="ui-header ui-li ui-li-divider ui-btn ui-bar-d ui-btn-up-undefined">
                                <h2 class="ui-title">用户注册</h2>
                            </li>
                            <li><strong>URL地址</strong>：user/registerpost</li>
                            <li><strong>提交方式</strong>：POST</li>
                            <li><strong>参数#1</strong>：key，类型：STRING，必须：YES,说明：权限验证密钥</li>
                            <li><strong>参数#2</strong>：username，类型：STRING，必须：YES,说明: 用户名</li>
                            <li><strong>参数#3</strong>：password，类型：STRING，必须：YES,说明: 密码（6-12个字符）</li>
                            <li><strong>参数#4</strong>：mobile，类型：STRING，必须：YES,说明: 电话号码</li>
                            <li><strong>参数#5</strong>：idcard，类型：STRING，必须：YES,说明: 身份证号</li>
                            <li><strong>参数#6</strong>：blankcard，类型：STRING，必须：YES,说明: 银行卡号</li>
                            <li>
                                <strong>返回格式</strong>：以<strong>JSON</strong>格式返回前端,
                            </li>
                            <li>
                                <strong>返回数据</strong>：
                                <ul>
                                    <li>{"code":5000, "msg":"非法认证key"}</li>
                                    <li>{"code":2000, "msg":"请求失败"}</li>
                                    <li>{"code":2001, "msg":"参数格式错误"}</li>
                                    <li>{"code":2002, "msg":"参数值非法"}</li>
                                    <li>{"code":1, "data":[{"uid": 1}]}</li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
                            <li data-role="list-divider" role="heading" class="ui-header ui-li ui-li-divider ui-btn ui-bar-d ui-btn-up-undefined">
                                <h2 class="ui-title">用户登入</h2>
                            </li>
                            <li><strong>URL地址</strong>：user/loginpost</li>
                            <li><strong>提交方式</strong>：POST</li>
                            <li><strong>参数#1</strong>：key，类型：STRING，必须：YES,说明：权限验证密钥</li>
                            <li><strong>参数#2</strong>：username，类型：STRING，必须：YES,说明: 用户名/手机号</li>
                            <li><strong>参数#3</strong>：password，类型：STRING，必须：YES,说明: 密码（6-12个字符）</li>
                            <li>
                                <strong>返回格式</strong>：以<strong>JSON</strong>格式返回前端,
                            </li>
                            <li>
                                <strong>返回数据</strong>：
                                <ul>
                                    <li>{"code":5000, "msg":"非法认证key"}</li>
                                    <li>{"code":2000, "msg":"请求失败"}</li>
                                    <li>{"code":2001, "msg":"参数格式错误"}</li>
                                    <li>{"code":2002, "msg":"参数值非法"}</li>
                                    <li>{"code":1, "data":[...]}</li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
                            <li data-role="list-divider" role="heading" class="ui-header ui-li ui-li-divider ui-btn ui-bar-d ui-btn-up-undefined">
                                <h2 class="ui-title">用户注销</h2>
                            </li>
                            <li><strong>URL地址</strong>：user/logoutpost</li>
                            <li><strong>提交方式</strong>：POST</li>
                            <li><strong>参数#1</strong>：key，类型：STRING，必须：YES,说明：权限验证密钥</li>
                            <li>
                                <strong>返回格式</strong>：以<strong>JSON</strong>格式返回前端,
                            </li>
                            <li>
                                <strong>返回数据</strong>：
                                <ul>
                                    <li>{"code":5000, "msg":"非法认证key"}</li>
                                    <li>{"code":2000, "msg":"请求失败"}</li>
                                    <li>{"code":2001, "msg":"参数格式错误"}</li>
                                    <li>{"code":2002, "msg":"参数值非法"}</li>
                                    <li>{"code":1, "data":[]}</li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <div data-role="footer" data-position="fixed">
                <div data-role="navbar">
                    <ul>
                        <li><a href="{:U('index')}" class="ui-btn-active">文档</a></li>
                        <li><a href="{:U('apiList')}">在线调试</a></li>
                    </ul>
                </div>
            </div>
		</div>
        <script>
            $(document).ready(function() {
                jQuery.mobile.ajaxEnabled = false;
            });
        </script>
	</body>
</html>